<%-- 
    Document   : adminlist
    Created on : 2012-12-4, 19:57:03
    Author     : Timmy
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="<c:url value='/css/main.css'/>" rel="stylesheet" type="text/css"/>
         <link href="<c:url value="/css/jquery-ui-1.9.2.custom.min.css" />" rel="stylesheet" type="text/css" />
         <script type="text/javascript" src="<c:url value="/scripts/jquery.js" />" ></script>
         <script type="text/javascript" src="<c:url value="/scripts/jquery-ui-1.9.2.custom.min.js" />" ></script>
    </head>
    <body>
        <h1>Registered User List</h1>
        <table class="borderAll">
            <tr>
                <th><s:text name="User Name"/></th>
                <th><s:text name="Action"/></th>
                <th>&nbsp;</th>
            </tr>
            <s:iterator value="users">
                <tr class="<s:if test="#stat.odd == true">odd</s:if><s:else>even</s:else>">
                    <td><s:property value="userName"/></td>
                    <td class="nowrap">
                        <a href="<s:url namespace="/usermgmt" action="editadmin_%{userName}" />"><b>Change Password</b></a>
                        &nbsp;&nbsp;&nbsp;
                        <a href="<s:url namespace="/user" action="delete_%{userName}" />"><b>Delete</b></a>
                    </td>
                </tr>
            </s:iterator>
        </table>
    </body>
</html>
